/*
 * Created on Mar 29, 2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package com.ba360.struts.form;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.TimeZone;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

/**
 * @author ROnat
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class BlogForm extends ActionForm {
	
	public String getBlogid() {
		return blogid;
	}
	public void setBlogid(String blogid) {
		this.blogid = blogid;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getDateCreated() {
		SimpleDateFormat sdf = new SimpleDateFormat("MMM,dd");
		TimeZone tz = TimeZone.getTimeZone("GMT-08:00");
		sdf.setTimeZone(tz);
		return sdf.format(dateCreated);
	}
	public void setDateCreated(Timestamp dateCreated) {
		this.dateCreated = dateCreated;
	}
	public String getDateModified() {
		SimpleDateFormat sdf = new SimpleDateFormat("MMM,dd");
		TimeZone tz = TimeZone.getTimeZone("GMT-08:00");
		sdf.setTimeZone(tz);
		return sdf.format(dateModified);
	}
	public void setDateModified(Timestamp dateModified) {
		this.dateModified = dateModified;
	}
	public String getSummary() {
		return summary;
	}
	public void setSummary(String summary) {
		this.summary = summary;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String title;
	public String blogid;
	public String summary;
	public String content;
	public Timestamp dateCreated;
	public Timestamp dateModified;
	public String noOfReviews;
	
	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {
	return null;
	}

	public String getNoOfReviews() {
		return noOfReviews;
	}
	public void setNoOfReviews(String noOfReviews) {
		this.noOfReviews = noOfReviews;
	}
}
